package com.liangwj.springbootdesignpatterns.structureTypePatterns.decorator.demo_1;
/**
 * <b>Description:</b> Shape 接口的抽象装饰类 <br/>
 * @author Lingwenjun
 * @date 2019/1/29-10:55
 * @version 1.0
 */
public abstract class ShapeDecorator implements Shape{

    protected Shape decoratorShape;

    //construct
    public ShapeDecorator(Shape decoratorShape) {
        this.decoratorShape = decoratorShape;
    }

    @Override
    public void draw() {
        decoratorShape.draw();
    }
}
